<%@page contentType="text/html; charset=euc-kr"%>
<%@page import="java.util.List" %>
<%@page import="java.util.Iterator" %>
<%@page import="org.springframework.web.bind.RequestUtils" %>
<%@page import="com.iheart.member.model.MemberMModel"%>
<%@page import="com.iheart.common.PropertiesManager"%>
<jsp:useBean id="imManager" class="com.iheart.common.ImageMaker" scope="page"/>
<jsp:useBean id="imModel" class="com.iheart.common.model.ImageMakeModel" scope="page"/>
<jsp:setProperty name="imModel" property="*"/>
<jsp:useBean id="iwebUtil" class="com.iheart.common.IWEBUtil" scope="page"/>
<%@ include file="../include/permissionCheck.jsp" %>
<%
	MemberMModel sesM = null;
	
	if ( session.getAttribute("USER") != null ) {
		sesM = (MemberMModel)session.getAttribute("USER");
	}
	
	imModel.setLoginid(sesM.getLogId());
	String flag =iwebUtil.nvlCheck(request.getParameter("flag"),"reg");
	String fileNm = request.getParameter("fileNm");
	String fName = imManager.makeImage(imModel,flag,fileNm);
	out.println(	"<script language=javascript>" +
					"parent.top.opener.setImg('"+request.getContextPath() + iwebUtil.webUserImgPath(fName,sesM.getLogId())+"', '" + request.getParameter("imgNum") + "');"+
					"parent.self.close();"+
					"</script>");
	

%>